<?php
include "config.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <title>Реестр членов</title>
    <link href="css/sro.css" rel="stylesheet" type="text/css">
    <script src="js/Event.js" language="javascript"></script>
    <script src="js/modificatMenu.js" language="javascript"></script>
    <script src="js/resize.js" language="javascript"></script>

    <link rel="stylesheet" type="text/css" href="css/jquery.css" media="screen">
    <script type="text/javascript" src="js/jquery-1.js"></script>
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery_002.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $("a.gallery, a.iframe").fancybox();

            $("#menu a, .anim").hover(
                    function() {
                        $(this).animate({"paddingLeft" : "10px"}, 300)
                    },
                    function() {
                        $(this).animate({"paddingLeft" : "0"}, 300);
                    }
            );

            $("a.iframe").fancybox(
            {
                "frameWidth" : 800,   // ширина окна, px (425px - по умолчанию)
                "frameHeight" : 600 // высота окна, px(355px - по умолчанию)

            });


        });
    </script>
</head>


<body>
<div id="container">
<?php
$SELECTED_MENU="menu-3";
include "banner.php"
?>
    <div class="workzone">
        <div style="height: 197px; min-height: 197px;" id="text">

            <?php
            include "members/members_config.php";
            if ($_GET["memberId"] && $members[(int)$_GET["memberId"]]) {
                $member = $members[(int)$_GET["memberId"]];
                include "members/member_info.php";
            } else {
            ?>
            <h2 class="blueheading24">Реестр членов:</h2>
            <table class="members_tab" border="1">
                <tr>
                    <th>№</th>
                    <th>Наименование организации</th>
                    <th>Адрес</th>
                    <th>ИНН</th>
                    <th>ОГРН</th>
                </tr>
            <?php
                $cnt = 0;
                foreach ($members as $key => $member) {
                    $cnt++;
                ?>
                    <tr>
                        <td><?php print $cnt; ?></td>
                        <td><a href="?memberId=<?php print $key; ?>"><?php print $member["name"]; ?></a></td>
                        <td><?php print $member["address"]; ?></td>
                        <td><?php print $member["inn"]; ?></td>
                        <td><?php print $member["ogrn"]; ?></td>
                    </tr>
                <?php
                }
            ?>
            </table>
            <?php
            }
             ?>

    </div>


    <div class="clear"></div>
    <div class="footer">
        <!--TODO: add footer-->
    </div>

</div>


<div id="fancy_overlay"></div>
<div id="fancy_wrap">
    <div class="fancy_loading" id="fancy_loading">
        <div></div>
    </div>
    <div id="fancy_outer">
        <div id="fancy_inner">
            <div id="fancy_close"></div>
            <div id="fancy_bg">
                <div class="fancy_bg fancy_bg_n"></div>
                <div class="fancy_bg fancy_bg_ne"></div>
                <div class="fancy_bg fancy_bg_e"></div>
                <div class="fancy_bg fancy_bg_se"></div>
                <div class="fancy_bg fancy_bg_s"></div>
                <div class="fancy_bg fancy_bg_sw"></div>
                <div class="fancy_bg fancy_bg_w"></div>
                <div class="fancy_bg fancy_bg_nw"></div>
            </div>
            <a href="javascript:;" id="fancy_left"><span class="fancy_ico" id="fancy_left_ico"></span></a><a
                href="javascript:;" id="fancy_right"><span class="fancy_ico" id="fancy_right_ico"></span></a>

            <div id="fancy_content"></div>
            <div id="fancy_title">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                    <tr>
                        <td class="fancy_title" id="fancy_title_left"></td>
                        <td class="fancy_title" id="fancy_title_main">
                            <div></div>
                        </td>
                        <td class="fancy_title" id="fancy_title_right"></td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</body>
</html>